<template>
    <div id="top">
            <a href="javascript:;">{{uname}}</a><span>的购物车</span>
            <!-- <a href="javascript:;" class="back">&lt;&lt;返回首页</a>  -->
            <router-link to="/home">&lt;&lt;返回首页</router-link>
    </div>
</template>

<script>
export default {
    props:["uname"]
}
</script>

<style scoped>
    div{
        margin: 0;
        padding: 0;
    }
    span{
        font-family: 'Times New Roman', Times, serif,'SimSun';
        font-size: 12px;
    }
    #top{
        width: 70%;
        min-width: 800px;
        height: 30px;
        background: #c0dac8;
    }
    #top>a{
        text-decoration: none;
        color: black;
        font-weight: lighter;
        font-size: 12px;
        display: inline-block;
        height: 100%;
        line-height: 30px;
        margin-left: 80px;
    }
    #top>a:last-child{
        margin: 0 0 0 480px;
    }
   .back{
       float: right;
       margin-right: 80px;
   }
</style>